<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller
{
	function __construct()
	{
		parent::__construct();
		if (!$this->session->userdata('loggedin'))
		{
			redirect(base_url(), 'refresh');
		}
	}
	
	function index()
	{
		$this->load->view('common/header');
		$this->load->view('common/menu');
		$this->load->view('home');
		$this->load->view('common/footer');
	}
}